<html>
	<head>
		<meta charset="utf-8" />
		<title>{$th=isset($title) ? $title : '小哥哥的论坛';}</title>
		<link rel="stylesheet" type="text/css" href="{$webSite}public/css/base.css"/>
	
	</head>
	
	<style>
		a:hover{
			color:orange;
			
		}
		/*************	顶部top	********************/
		.top{
			width:100%;
			height:20px;
			background:#EFF4F7;
		}
		.top_1{
			float:left;
			margin-left:200px;
		
		}
		.top_2{
			float:left;
			margin-left:15px;

		}
		
		/*************	头部header	********************/
		/*****	logo图标部分	***********/
		.logo{
			width:75px;
			height:86px;
			position:absolute;
			top:45px;
			left:205px;
		}
		
		/*******	登录form表单部分login	********/
		.header{
			width:960px;
			height:120px;
			background:#FCFDFE;
			margin:0 auto;
		}
		/*******	登录前部分 login (左侧form表单)	********/
		.login{
			width:185px;
			height:120px;
			margin-left:650px;

			float:left;
		}
		
		.name,.pwd{
			width:165px;
			height:25px;
			margin-top:5px;
			margin-left:5px;
			float:left;
		}
		.yzm{
			width:60px;
			height:25px;
			margin-top:20px;
			margin-left:10px;
			float:left;
		}
		.yzm_box{
			width:100px;
			height:40px;
			margin-top:5px;
			margin-left:5px;
			background:#fff;
			float:left;
		}
		
		/*******	登录右侧提交部分login_font	********/
		.login_font{
			width:100px;
			height:100px;
			padding-left:10px;
			margin-top:5px;
			float:left;
			border-left:1px #ccc solid;
		}
		.find_pwd{
			width:88px;
			height:20px;
			margin-top:10px;
			margin-left:12px;
		}
		.register_jump{
			width:88px;
			height:20px;

			margin-left:12px;
		}
		.auto_login{
			width:100px;
			height:20px;
	

		}
		.login_btn{
			width:50px;
			height:25px;
			margin-top:5px;
			margin-left:15px;
			background:#145DBC;
			color:#fff;
			font-weight:bold;
		}
		/*******	登录后部分 login_after	********/
		.login_after{
			min-width:400px;
			height:80px;
			margin-top:15px;
			float:right;
		}


		/*****	登录后左侧 login_after_left	****/

		.login_after_left{
			width:320px;
			height:80px;
			float:left;
		}
		.login_after_left ul{
			width:320px;
			height:40px;
			
		}
		.login_after_left ul li{
			float:right;
			margin-right:10px;
			margin-top:15px;
		}
		.login_after_left ul .border{
			width:1px;
			height:12px;
			background:#ccc;
			float:right;
			margin-right:10px;
			margin-top:18px;

		}
		
		/*****	登录后右侧 login_after_right	****/
		.login_after_right{
			width:80px;
			height:80px;
			float:right;
			margin-right:10px;
		}
		.login_after_right img{
			width:80px;
			height:80px;
			border-radius:5px;
		}

		/*******	导航栏nav	********/
		.nav{
			width:960px;
			height:40px;
			background:#2B78C8;
			margin:0 auto;
			border-radius:5px 5px 0px 0px;
		}
		.nav_head{
			min-width:70;
			max-width:150px;
			height:40px;
			line-height:40px;
			font-size:18px;
			font-weight:bold;
			color:#fff;
			float:left;
			white-space:nowrap;
			text-overflow:ellipsis;
			overflow:hidden; 

		}
		.nav_border{
			width:1px;
			height:24px;
			margin-top:8px;
			margin-left:10px;
			margin-right:10px;
			background:#4D88C9;
			float:left;
		}
		.nav_head:hover{
			background:#17479D;
		}
		/******	  搜索框find	****************/
		.find{
			width:960px;
			height:50px;
			background:#FAFBFC;
			margin:0 auto;
			
		}
		.find_pic{
			width:38px;
			height:36px;
			margin-top:8px;
			float:left;
		}
		.find_box{
			width:400px;
			height:35px;
			margin-top:10px;

			float:left;
		}
		.find_btn{
			width:60px;
			height:35px;
			margin-top:10px;
			background:#E8EDF0;

			float:left;
		}
		.find ul{
			width:260px;
			height:20px;
			margin-top:20px;
			margin-left:10px;
			float:left;

		}
		.find ul li{
			width:40px;
			height:20px;
			float:left;
			color:#336699;

		}
		
	
	</style>

	<body>
		<!-- 顶部 -->
		<div class="top clearFix">
			<div class="top_1"><a href="{$webSite}index.php">设为首页</a></div>
			<div class="top_2"><a href="{$webSite}index.php">收藏本站</a></div>
		</div>
		
		<!-- 图标logo部分 -->
		<div class="logo">
			<a href="{$webSite}index.php">
				<img src="{$webSite}public/images/logo.png">
			</a>
		</div>
		
		<!-- header头部,登录部分 -->
		
		<div class="header clearFix">
			<!-- header头部,登录后 开始 -->
			
			{if $loginStatus == 1}

			<div class="login_after clearFix">
				
				<div class="login_after_left">
					<ul class="clearFix">
						 <li>
						 	<a href="{$webSite}admin/home/loginout.php">退出</a>
						 </li>

						<li class="border"></li>
						
						{if $userType == 1}
						<li>
							{if $admin}
							<a href="{$webSite}admin_index.php">管理中心</a>
							{else}
							<a href="{$webSite}admin_login.php">管理中心</a>
							{/if}

						</li>
						<li class="border"></li>
						{/if}

						<li>
							<a href="{$webSite}setup.php?number=2">设置</a>
						</li>

						<li class="border"></li>

						<li>
							<a href="{$webSite}setup.php?number=2">{$username}</a>
						</li>
						<li>
							<img src="{$webSite}public/images/login_after.gif" />
						</li>
					</ul>
					<ul class="clearFix">
						 <li>用户权限: {$type=$userType==1?'管理员':'普通用户'}</li>
						<li class="border"></li>
						
						<li>积分: {$grade}</li>	
					</ul>
				</div>

				<div class="login_after_right">
					<img src="{$webSite}{$txPic}" /> 
				</div>


			</div> 

			{else}
			<!-- header头部,登录后 结束 -->

			<!-- header头部,登录前 开始 -->
			
			<form action="{$webSite}admin/home/login.php" method="post" enctype="multipart/form-data">
			
			<div class="login clearFix">
				<input  class="name" type="text" name="username"   maxlength="12" placeholder="&nbsp;输入用户名"/>
			
				<input class="pwd" type="password" name="pwd"  maxlength="12"  placeholder="&nbsp;输入密码"/>
				
				<div class="yzm_box"><img src="{$webSite}helper/yzm.php" onclick="this.src='{$webSite}helper/yzm.php'"></div>
				<input class="yzm" type="text" name="Lverify"  maxlength="10" placeholder="&nbsp;验证码"/>
				

			</div>
			<div class="login_font">
				<div class="find_pwd">
					<a href="">找回密码</a>
				</div>
				<div class="register_jump">
					<a href="{$webSite}register.php">
						<span style="font-weight:bold; color:#145DBC;">立即注册</span>
					</a>
				</div>	
				
				<div class="auto_login">
					<input type="checkbox" name="autoLogin" id="Lauto"/><label for="Lauto">自动登录</label>
				</div>
				<input class="login_btn" type="submit" name="" value="登 录"/>
				
			</div>
			
			</form>
		 	{/if}
		 	<!-- header头部,登录前  结束 -->

			
			
		</div>
	

 		

		<!-- 导航栏 nav-->
		<div class="nav clearFix">
			
			<a href="{$webSite}index.php">
				
				<div class="nav_head">&nbsp;&nbsp;&nbsp;首页</div>
			</a>

			<!-- 遍历出parentid 为0 的父级版块 -->
			{if $resHead}
			{foreach $resHead as $value}

			<a href="{$webSite}index.php?bigId={$value['cid']}">
				
				<div class="nav_border"></div>
				<div class="nav_head">&nbsp;&nbsp;&nbsp;{$value['classname']}</div>

			</a>

			{/foreach}
			{/if}
			
			
		</div>
		
		<!-- 搜索框部分 -->
		<div class="find clearFix">
			<div class="find_pic">
				<img src="{$webSite}public/images/find.png">
			</div>
			
			<!-- 搜索内容 -->
			<form action="{$webSite}find.php" method="get" enctype="multipart/form-data">

			<input class="find_box" type="text" name="content" placeholder="请输入搜索内容 (不超过50个字符或 20 个汉字) " maxlength="50" />
			<input class="find_btn" type="submit" value="搜索"/>

			</form>
			
			<ul>
				<li style="font-weight:bold;color:#000;">热搜：</li>
				<a href="http://www.baidu.com"><li>活动</li></a>
				<a href="http://www.163.com"><li>交友</li></a>
				<a href="http://www.4399.com"><li>教程</li></a>
			</ul>
		</div>
	
	</body>
</html>